package app.model;

import java.util.Date;

import com.agile.jfinal.model.CoreModel;
import com.jfinal.ext.plugin.tablebind.TableBind;

/**
* 数据库表对应的Model类，继承了CoreModel
* @author qiutian 
* @date 2013-12-19
*/
@TableBind(tableName="app_message",pkName="pk_message") 
public class AppMessage extends CoreModel<AppMessage>{

	public static final AppMessage dao = new AppMessage();

	public static final String PK_MESSAGE = "pk_message";   //主键
	public static final String VCODE = "vcode";   //编码
	public static final String PK_BASEDOC = "pk_basedoc";   //app管理档案主键
	public static final String VNAME = "vname";   //消息主题
	public static final String COMMENTS = "comments";   //消息内容
	public static final String SEND_TIME = "send_time";   //推送定时时间
	public static final String SEND_INTERVAL = "send_interval";   //每个X分钟推送一次消息
	public static final String TIMES = "times";   //推送次数
	public static final String CREATE_BY = "create_by";   //制单人
	public static final String CREATE_TIME = "create_time";   //制单时间
	public static final String TS = "ts";   //时间戳
	public static final String DR = "dr";   //删除标记
	public static final String STATUS = "status";   //发送状态 0-未发送 1-已发送 2-发送失败
	public static final String COLUMN_1 = "column_1";   //预留字段1
	public static final String COLUMN_2 = "column_2";   //预留字段2
	public static final String COLUMN_3 = "column_3";   //预留字段3
	public static final String COLUMN_4 = "column_4";   //预留字段4
	public static final String COLUMN_5 = "column_5";   //预留字段5


	/**数据库中的表名*/
	@Override
	public String getTableName() {
		// TODO Auto-generated method stub
		return "app_message";
	}


	/**主键字段名称*/
	@Override
	public String getPrimaryKey() {
		// TODO Auto-generated method stub
		return PK_MESSAGE;
	}


}
